package com.lhkj.ct.meta.modules.psychology.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lhkj.ct.base.model.dto.PageQuery;
import com.lhkj.ct.base.mybatis.extension.service.IPageService;
import com.lhkj.ct.base.mybatis.extension.service.IService;
import com.lhkj.ct.meta.modules.psychology.model.entity.TblScalePsyImport;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2023-10-23
 */
@Validated
public interface ScalePsyImportService extends IService<TblScalePsyImport>, IPageService<TblScalePsyImport> {

    /**
     * 导入记录列表 - 分页查询
     */
    IPage<TblScalePsyImport> selectImportPage(TblScalePsyImport psyImport, PageQuery pageQuery);

    /**
     * 导出量表
     */
    void export(@NotEmpty(message = "请选择需要导出的数据")
                @Size(max = 50, message = "单次最多可导出{max}个测验量表") @RequestBody List<String> ids);

    /**
     * 导入测验
     */
    void importPsy(MultipartFile file);
}
